package com.java46.front.payMethod.action;

import com.java46.front.base.action.BaseAction;
import com.java46.front.payMethod.entity.PaymethodEntity;
import com.java46.front.payMethod.service.PayMethodservice;
import org.apache.struts2.convention.annotation.Action;


import java.util.List;

public class PayMethAction extends BaseAction
{
        private PayMethodservice paymethodservice=new PayMethodservice();

        @Action(value = "querypatmetho")
        public String querypatmetho(){

            List<PaymethodEntity> entities = paymethodservice.query_payme();
            setSuccesResult(entities);

            return "json";
        }

}
